package com.timeshare.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 预约实体
 */
@Data
@TableName("appointments")
public class Appointment {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 技能ID
     */
    private Long skillId;
    
    /**
     * 发起者ID
     */
    private Long requesterId;
    
    /**
     * 提供者ID
     */
    private Long providerId;
    
    /**
     * 预约时间
     */
    private LocalDateTime appointmentTime;
    
    /**
     * 预约时长（分钟）
     */
    private Integer duration;
    
    /**
     * 预约备注
     */
    private String note;
    
    /**
     * 状态：0-待确认 1-已确认 2-进行中 3-已完成 4-已取消 5-已拒绝
     */
    private Integer status;
    
    /**
     * 完成时间
     */
    private LocalDateTime completeTime;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}

